package com.tudouji.project.bill.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 每日库存对象 whinforecord
 * 
 * @author tudouji
 * @date 2023-04-27
 */
@Data
public class Whinforecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;
    private String guid;

    /** 库房id */
    @Excel(name = "库房id")
    private String storermguid;

    /** 批次id */
    @Excel(name = "批次id")
    private String batchid;

    /** 仓库id */
    @Excel(name = "仓库id")
    private String storehguid;

    /** 仓库编号 */
    @Excel(name = "仓库编号")
    private String storehcode;

    /** 货品id */
    @Excel(name = "货品id")
    private String productid;

    /** 货品名称 */
    @Excel(name = "货品名称")
    private String productname;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private BigDecimal storeqty;

    /** 库存单位 */
    @Excel(name = "库存单位")
    private String stockunit;

    /** 货物单价 */
    @Excel(name = "货物单价")
    private BigDecimal price;

    /** 入库开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date wistartdate;

    /** 入库结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date wienddate;

    /** 出库开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date wostartdate;

    /** 出库结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出库结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date woenddate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdate;

    /** 操作人id */
    @Excel(name = "操作人id")
    private String operatorid;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdate;

    /** 公司id */
    @Excel(name = "公司id")
    private String orgguid;

    /** 规格id字段，可空，仅对产成品库存数据有意义 */
    @Excel(name = "规格id字段，可空，仅对产成品库存数据有意义")
    private String spguid;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recorddate;

    /** 库存单位id */
    @Excel(name = "库存单位id")
    private Long stockunitid;

    private String formno;

    private String businessCode;


    /***************************表生成统计数据***************************/
    private Date starttime;
    private Date endtime;
    private BigDecimal storeqtysum;

    private BigDecimal storeqtysumXtry;

    private String room;
    private String house;
    private String orgname;
    private String spename;

    private String orgguidcondition;//统计是否有此条件0:没有1：有
    private String othercondition;//
    /***************************表生成统计数据***************************/

    private Integer shrtype;//库间类型\r\n1-原材料库，2-产成品库 3-废品库（不合格品库）
}
